package td.towers
{
	import flash.display.Graphics;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import td.Creep;
	import td.projectiles.*;
	
	/**
	 * ArtilleryTower class
	 * @see 大炮类  高伤，范围、定点攻击，高致命伤害;速度非常慢。
	 * 
	 * @author rayyee
	 */
	public class ArtilleryTower extends Tower
	{
		
		/**
		 * Constructor method
		 * 
		 * @constructor
		 * @access public
		 * @param {MagicTD} mtd A reference to the current TD game
		 * @return Tower
		 */
		public function ArtilleryTower(mtd :MagicTD,valueType:String=null)
		{
			if(valueType) this.type  = valueType;
			else this.type  = 'tower_8';
			this.power = 300;
			this.rate  = 1;
			this.range = 120;
			this.dead = 1.8;
			this.deadpro = 0.05;
			
			super(mtd,valueType);
		}
		
		/**
		 * 定点攻击目标
		 * 
		 */
		private function spotAct():void {
			
		}
		
		
		/**
		 * Creates a new bullet to be fired from this tower
		 * 
		 * @access public
		 * @param {Creep} t The target creep
		 * @return FireBullet
		 */
		public override function getNewBullet(t:Creep):Bullet
		{
			var b :FireBullet = new FireBullet(t);
			b.x = this.x;
			b.y = this.y;
			b.setPower(this.power);
			return b;
		}
	}
}